﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="TU_Role.List.aspx.cs" Inherits="JOIN.Rights.Apps.TU_RoleList" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <!-- List.aspx -->
    <ajaxToolkit:ToolkitScriptManager ID="scriptmanager1" runat="server" />
    <table cellspacing="0" cellpadding="0" width="95%" border="0">
        <tr>
            <td>
                <table width="100%" class="InputTable">
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            角色ID：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtRoleID" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            角色名：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtRoleName" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            描述：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtRoleDesc" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            ProjectID：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtProjectID" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center">
                <input type="button" id="btnQuery" value="查询" class="btn" />
                &nbsp;&nbsp;
                <input type="button" id="btnAdd" value="新增" class="btn" />
                <Kevin:DialogWindow ID="window1" runat="server" ControlID="btnAdd" URL="TU_Role.aspx"
                    Height="400px" Width="600px">
                </Kevin:DialogWindow>
            </td>
        </tr>
        <tr>
            <td>
                <Kevin:Grid ID="grid1" runat="server" GridCssClass="Grid" ServicePath="~/Services/BLLService.asmx"
                    QueryMethod="GetRoleInfoList" AutoGetData="true" QueryControlID="btnQuery" PagerPlace="Both"
                    PageSize="15">
                    <Parameters>
                        <Kevin:QueryParameter ControlID="txtRoleID" DataPropertyName="RoleID" />
                        <Kevin:QueryParameter ControlID="txtRoleName" DataPropertyName="RoleName" />
                        <Kevin:QueryParameter ControlID="txtRoleDesc" DataPropertyName="RoleDesc" />
                        <Kevin:QueryParameter ControlID="txtProjectID" DataPropertyName="ProjectID" />
                    </Parameters>
                    <DataFields>
                        <Kevin:ExtendFiled GridID="grid2" FormatFileds="RoleID" ServicePath="../Services/BLLService.asmx"
                            QueryMethod="GetUserInfoListByRoleID" SubGridCssClassName="Grid" Width="20" />
                        <Kevin:DataBoundField FieldName="RoleID" HeaderText="ID" Visible="false" />
                        <Kevin:DataBoundField FieldName="RoleID" HeaderText="角色编号" />
                        <Kevin:DataBoundField FieldName="RoleName" HeaderText="角色名" />
                        <Kevin:DataBoundField FieldName="RoleDesc" HeaderText="描述" />
                        <Kevin:DataBoundField FieldName="ProjectName" HeaderText="项目" Visible="false" />
                    </DataFields>
                </Kevin:Grid>
                <Kevin:Grid ID="grid2" runat="server" GridCssClass="Grid" ServicePath="../Services/BLLService.asmx"
                    AutoGetData="false" PagerPlace="Both" PageSize="10">
                    <Parameters>
                        <Kevin:QueryParameter DataPropertyName="RoleID" />
                    </Parameters>
                    <DataFields>
                        <Kevin:PopUpField DialogTitle="用户编辑" NavigateURLString="tu_user.aspx?KeyID={0}" FormatFields="UserID"
                            ItemText="编辑" DialogHeight="400" DialogWidth="600" />
                        <Kevin:DataBoundField FieldName="UserID" HeaderText="用户ID" />
                        <Kevin:DataBoundField FieldName="UserNO" HeaderText="用户帐号" />
                        <Kevin:DataBoundField FieldName="UserName" HeaderText="用户姓名" />
                        <Kevin:DataBoundField FieldName="UserSex" HeaderText="性别" />
                        <Kevin:DataBoundField FieldName="UserPhone" HeaderText="联系电话" />
                        <Kevin:DataBoundField FieldName="UserAddress" HeaderText="住址" />
                        <Kevin:DataBoundField FieldName="UserEmail" HeaderText="电子邮件" />
                        <Kevin:DataBoundField FieldName="UserState" HeaderText="帐号状态" />
                    </DataFields>
                </Kevin:Grid>
            </td>
        </tr>
    </table>
</asp:Content>
